package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.ShoppingTrolleyContract;
import com.huopaolan.yohuoshop.Mvp.Model.ShoppingTrolleyModel;

import javax.inject.Inject;

import dagger.Module;
import dagger.Provides;

@Module
public class ShoppingTrolleyModules {
    ShoppingTrolleyContract.ShoppingTrolleyIView iView;

    @Inject
    public ShoppingTrolleyModules(ShoppingTrolleyContract.ShoppingTrolleyIView iView) {
        this.iView = iView;
    }

    @Provides
    public ShoppingTrolleyContract.ShoppingTrolleyIView providerIView() {
        return iView;
    }

    @Provides
    public ShoppingTrolleyContract.ShoppingTrolleyIModel providerIModel() {
        return new ShoppingTrolleyModel();
    }
}
